package edu.hunau.pojo;

/**
 *  课程
 */
public class Course {
    //课程编号
    private String id;
    //课程名称
    private String name;
    //课程性质
    private CourseType type;

    //学分
    private double creadit;


    public Course(){

    }

    public Course(String id, String name, CourseType type, double creadit) {
        //todo: 完成构造器

    }


    //TODO 1: 重写 equals、hashCode、toString方法



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public CourseType getType() {
        return type;
    }

    public void setType(CourseType type) {
        this.type = type;
    }

    public double getCreadit() {
        return creadit;
    }

    public void setCreadit(double creadit) {
        this.creadit = creadit;
    }
}
